<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>商商通系统</title>
</head>

<body style="padding:0; margin:0; background-color:#999999; background-image:url(images/login_bg.gif); font-size:14px;">

<div style=" height:432px; width:581px; background-image:url(images/login_img_bg.jpg);margin:auto; margin-top:auto;">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<form action="login.php" name="loginform" method="post" onsubmit="return chkform()">
	<tr height="320"><td colspan="2"></td></tr>
	<tr height="30">
		<td align="right">
		用户名：
		</td>
		<td>
		<input type="text" name="name" style="width:150px;"/>
		</td>
	</tr>
	<tr height="30">
		<td align="right">
		密&nbsp;&nbsp;&nbsp;码：
		</td>
		<td>
		<input type="password" style="width:150px" name="password" />
		</td>
	</tr>
	<tr>
		<td></td>
		<td><input type="submit" name="submit" value="登 录"/></td>
	</tr>
</form>
</table>
</div>
<script>
function chkform(){
	window.location="home.html";
	return false;;
	var form = document.loginform;
	var name = form.name.value;
	var pwd = form.password.value;
	if(name == "" || name.length<5){
		//alert("请输入用户名！");
		return false;
	}
	if(pwd == "" || pwd.length<6){
		//alert("请输入用户密码！");
		return false;
	}
	return true;
}
</script>
</body>
</html>
